<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>详情页</title>
    <style>
      body {
        background-color: #ccc;
      }
    </style>
  </head>
  <body>
    <h2>我是详情页</h2>
    <script>

      window.onload = function(){
        widnow.setInterval(() => {
          console.log('开心每一秒')
        }, 1000);
      }
    </script>
  </body>
</html>
